//----------------------------------Include-------------------------------------
#include "mcu.h"
//------------------------------------------------------------------------------

//PY00--TDO     PY01--TDI    PY02--TCK    PY03--TMS    PY04--TRST
//PA21--boot1   PA20--boot0

//--------------------------------Public Func-----------------------------------
void mcu_init_do(void)
{
//periph clock
  
//output
  //PA7  --LED
  HPM_IOC->PAD[IOC_PAD_PA07].FUNC_CTL = IOC_PA07_FUNC_CTL_GPIO_A_07;
  
  //init and default output
  gpio_set_pin_output_with_initial(HPM_GPIO0,  GPIO_DO_GPIOA,  07,  1);   //0亮1灭
}

//LED
void mcu_led_toggle(void)
{
  gpio_toggle_pin(HPM_GPIO0, GPIO_DO_GPIOA, 07);
}
//------------------------------------EOF---------------------------------------



